var mongoose = require('mongoose');
var mongoosePaginate = require('mongoose-paginate');
var Schema = mongoose.Schema;

var ObjectId = Schema.ObjectId;

var schema = new mongoose.Schema({ 
	title:String,
	newsId:ObjectId,
	content: String
 });

schema.plugin(mongoosePaginate);

var Comment = mongoose.model('Comment',  schema,'comment'); 
module.exports = Comment;
